import request from '@/utils/request';
// 订单列表
export async function queryRule(params?: Object) {
  return request('/api/order/list', {
    method: 'GET',
    params,
  });
}
// 订单详情
export async function orderDetail(id: string): Promise<any> {
  return request(`/api/order/detail/${id}`);
}
// 订单配货
export function orderReady(data: object): Promise<any> {
  return request('/api/order/ready', {
    method: 'POST',
    data,
  });
}

// 订单配货
export function orderSend(data: object): Promise<any> {
  return request('/api/order/send', {
    method: 'POST',
    data,
  });
}

// 订单完成
export function orderFinish(data: object): Promise<any> {
  return request('/api/order/finish', {
    method: 'POST',
    data,
  });
}

// 快递公司
export async function queryShipper(params?: Object) {
  return request('/api/shipper/list', {
    method: 'GET',
    params,
  });
}
